package com.joker.orange.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.joker.common.core.mapper.BaseMapperPlus;
import com.joker.orange.domain.CollectionInfo;
import com.joker.orange.domain.bo.CollectionBo;
import com.joker.orange.domain.vo.CollectionVo;
import org.apache.ibatis.annotations.Param;

/**
 * 收藏Mapper接口
 *
 * @author Joker
 * @date 2024-06-09
 */
public interface CollectionMapper extends BaseMapperPlus<CollectionMapper, CollectionInfo, CollectionVo> {

    /**
     * 收藏By网格视频
     */
    Page<CollectionVo> selectCollectionByLongVideo(@Param("page") Page<CollectionBo> page, @Param("collection") CollectionBo bo);

    /**
     * 收藏By短视频
     */
    Page<CollectionVo> selectCollectionByShortVideo(@Param("page") Page<CollectionBo> page, @Param("collection") CollectionBo bo);

    /**
     * 收藏By小说
     */
    Page<CollectionVo> selectCollectionByNovel(@Param("page") Page<CollectionBo> page, @Param("collection") CollectionBo bo);

    /**
     * 收藏By动漫
     */
    Page<CollectionVo> selectCollectionByAnime(@Param("page") Page<CollectionBo> page, @Param("collection") CollectionBo bo);

    /**
     * 收藏By漫画
     */
    Page<CollectionVo> selectCollectionByCaricature(@Param("page") Page<CollectionBo> page, @Param("collection") CollectionBo bo);

}
